package io.renren.modules.study.service;

import io.renren.common.utils.R;
import io.renren.modules.schedule.entity.CourseBodyScheduleEntity;
import io.renren.modules.study.entity.CourseScheduleEntity;
import io.renren.modules.sys.dto.CollectDto;
import io.renren.modules.study.entity.Course;

import java.util.List;
import java.util.Map;

public interface MyCourseService {
    CollectDto getMyCourseByCourseId(CollectDto c);

    List getCollectionList(Long userId);

    CollectDto getCollectionByCourseId(CollectDto c);

    void saveCollection(CollectDto c);

    CollectDto getMyHistoryByCourseId(CollectDto c);

    void saveHistory(CollectDto c);

    void updateHistory(CollectDto c);

    List getMyHistoryList(Long userId);

    Course getMyBuyCourseById(Integer courseId, Long userId);

    List getCourseList(Long userId);

    R buyMyCourse(Long userId, Map map);

    CourseScheduleEntity getMCoursechedule(Map map);

    void saveMyCourseSchedule(Map map);

    void updateThisCourseSchedule(Map map);

    CourseBodyScheduleEntity getMyCourseBodyScheduleEntity(Map map);

    void saveMyCourseBodyScheduleEntity(Map map);

    void updateMyCourseBodySchedule(Map map);

    List getCourseNotInMyPlan(Map map);

    List getMyCourseScheduleList(Long userId);
}
